package com.code.pattern.factory.abstractfactory;

/**
 * @author: liyufei
 * @date: 2021-03-14 15:03
 */
public class AbstractFactoryTest {

    public static void main(String[] args) {

        ICourseFactory factory = new JavaCourseFactory();
        factory.createCourse().record();
        factory.createNote();
        factory.createVideo();


        ICourseFactory factory1 = new PythonCourseFactory();
        factory1.createCourse().record();
        factory1.createNote();
        factory1.createVideo();
    }
}
